import { apiClient } from "@/utils/request";

export const fetchIllustrations = () => {
  return apiClient.get("/api/getAllIllustrations");
};

export const addIllustration = (data) => {
  return apiClient({
    url: "/api/addIllustration",
    method: "post",
    data: data,
  });
};

export const deleteIllustration = (id) => {
  return apiClient({
    url: `/api/deleteIllustration/${id}`,
    method: "get",
  });
};

export const updateIllustrations = (data) => {
  return apiClient({
    url: `/api/updateIllustrations `,
    method: "post",
    data: data,
  });
};
